
import loadable from 'react-loadable'
import {Loading} from '../components'


//路由懒加载
const Dashbaord=loadable ({
    loader :()=>import ('./Dashbaord'),
    loading:Loading
})
const Login=loadable ({
    loader :()=>import ('./Login'),
    loading:Loading
})
const NotFound=loadable ({
    loader :()=>import ('./NotFound'),
    loading:Loading
})
const Settings=loadable ({
    loader :()=>import ('./Settings'),
    loading:Loading
})
const ArticleList=loadable ({
    loader :()=>import ('./Article'),
    loading:Loading
})
const ArticleEdit=loadable ({
    loader :()=>import ('./Article/Edit'),
    loading:Loading
})
const Notification=loadable ({
    loader :()=>import ('./Notefication'),
    loading:Loading
})
const Authority=loadable ({
    loader :()=>import ('./Authority'),
    loading:Loading
})

export {
    Dashbaord,
    Login,
    NotFound,
    Settings,
    ArticleList,
    ArticleEdit,
    Notification,
    Authority

}